var mongoose = require('mongoose');

const Schema = mongoose.Schema;

const financeSchema = new Schema({
    name: String,
    organizationId: String,
    remain: Number,
    total: Number
}, { timestamps: { createAt: 'created', updatedAt: 'updated' }, versionKey: false })

const Finance = mongoose.model('finance', financeSchema);

module.exports = Finance